import mockjs from "mockjs"

let files = require.context("./modules", false, /\.js/);

files.keys().forEach(filename => {
    files(filename).default.forEach(obj => {
        mockjs.mock(obj.url, obj.type, obj.response)
    })
})